package com.hr.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hr.system.mapper.SysRuleMultipleMapper;
import com.hr.system.domain.SysRuleMultiple;
import com.hr.system.service.ISysRuleMultipleService;
import com.hr.common.core.text.Convert;

/**
 * 假勤奖惩规则Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-05-10
 */
@Service
public class SysRuleMultipleServiceImpl implements ISysRuleMultipleService 
{
    @Autowired
    private SysRuleMultipleMapper sysRuleMultipleMapper;

    /**
     * 查询假勤奖惩规则
     * 
     * @param id 假勤奖惩规则ID
     * @return 假勤奖惩规则
     */
    @Override
    public SysRuleMultiple selectSysRuleMultipleById(Long id)
    {
        return sysRuleMultipleMapper.selectSysRuleMultipleById(id);
    }

    /**
     * 查询假勤奖惩规则列表
     * 
     * @param sysRuleMultiple 假勤奖惩规则
     * @return 假勤奖惩规则
     */
    @Override
    public List<SysRuleMultiple> selectSysRuleMultipleList(SysRuleMultiple sysRuleMultiple)
    {
        return sysRuleMultipleMapper.selectSysRuleMultipleList(sysRuleMultiple);
    }

    /**
     * 新增假勤奖惩规则
     * 
     * @param sysRuleMultiple 假勤奖惩规则
     * @return 结果
     */
    @Override
    public int insertSysRuleMultiple(SysRuleMultiple sysRuleMultiple)
    {
        return sysRuleMultipleMapper.insertSysRuleMultiple(sysRuleMultiple);
    }

    /**
     * 修改假勤奖惩规则
     * 
     * @param sysRuleMultiple 假勤奖惩规则
     * @return 结果
     */
    @Override
    public int updateSysRuleMultiple(SysRuleMultiple sysRuleMultiple)
    {
        return sysRuleMultipleMapper.updateSysRuleMultiple(sysRuleMultiple);
    }

    /**
     * 删除假勤奖惩规则对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteSysRuleMultipleByIds(String ids)
    {
        return sysRuleMultipleMapper.deleteSysRuleMultipleByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除假勤奖惩规则信息
     * 
     * @param id 假勤奖惩规则ID
     * @return 结果
     */
    @Override
    public int deleteSysRuleMultipleById(Long id)
    {
        return sysRuleMultipleMapper.deleteSysRuleMultipleById(id);
    }
}
